<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="avicit.platform6.api.session.SessionHelper" %>
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess" %>
<%@page import="avicit.platform6.commons.utils.ViewUtil" %>
<%@ page import="java.util.Locale" %>
<%@ page import="java.net.URLDecoder" %>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <base href="<%=ViewUtil.getRequestPath(request)%>">
    <%
        Object lang = session
                .getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
        String languageCode = "zh_CN";
        if (lang != null) {
            languageCode = lang.toString();
        }
        Locale locale = SessionHelper.getLocaleByUser(request);
    %>
    <%
        String planName = request.getParameter("planName");
        planName = URLDecoder.decode(planName,"UTF-8");
    %>
    <jsp:include
            page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
    <jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
    <jsp:include
            page="/avicit/platform6/modules/system/commonpopup/commonSelectionHead.jsp"></jsp:include>
    <script type="text/javascript"
            src="avicit/im/lantop/basic/archivetemplatemanager/ArchivetemplatemanagerManager.js"></script>
    <script type="text/javascript"
            src="avicit/im/lantop/basic/archivetemplatemanager/locale/language_<%=languageCode%>.js"></script>
    <link href="static/css/custom/lantop/css/custom.css" type="text/css"
          rel="stylesheet">
    <title>归档详情计划</title>
    <script type="text/javascript">
        sysId = "<%=request.getParameter("sysId")%>";


        var planCol = [[
            {
                field: 'SORT',
                title: '序号',
                align: 'center'
            }, {
                field: 'ARCHIVE_FILE_KIND_NAME',
                title: '项目名称',
                width: 120,
                align: 'center'
            }]];

        $(function () {
            var id = '<%=request.getParameter("id")%>';
            $("#dataTable").datagrid({
                autoRowHeight: false,
                singleSelect: true,
                pagination: true,
                columns: planCol,
                pageSize: 20,
                pageList: [20, 30, 50, 100],
                toolbar: '#toolbar',
                striped: true,
                fit: true,
                selectOnCheck: false,
                checkOnSelect: false,
                scrollbarSize: 0,
                fitColumns: true,
                method: 'post',
                url: 'platform/archivetemplatemanageController/selectProjectList',
                queryParams: {
                    id: id
                }
            })
        })

        function toback() {
            parent.$("#formPlanInfo").dialog("close");
        }
    </script>
</head>
<body class="easyui-layout" fit="true">
<div data-options="region:'center'">
    <div id="toolbar" class="datagrid-toolbar" style="padding:10px 20px;">
        <span>计划名称</span>:<input type="text" value="<%=planName%>" disabled="disabled"/>
<%--        <div style="padding:10px">--%>
            <a id="createNewModelData" href="javascript: void(0)" class="easyui-linkbutton selbtnc" iconCls="icon-im-back"
               onclick="toback()">返回</a>
<%--        </div>--%>
    </div>

    <table id="dataTable"></table>
</div>
<div data-options="region:'south'" style="text-align: center;">

</div>
</body>
</html>